package com.xywang.dao.role;

import com.xywang.pojo.Role;
import org.mybatis.spring.SqlSessionTemplate;

import java.util.List;

public class RoleDaoImpl implements RoleDao{
    private SqlSessionTemplate sqlSessionTemplate;
    public void setSqlSessionTemplate(SqlSessionTemplate sqlSessionTemplate) {
        this.sqlSessionTemplate = sqlSessionTemplate;
    }
    @Override
    public List<Role> getRoleListDao() {
        return sqlSessionTemplate.getMapper(RoleDao.class).getRoleListDao();
    }
}
